package Day07.Demo04;

import java.util.ArrayList;

/**
 * @author 韩映晖
 * @version 1.0
 * @date 2022/2/6 20:30
 */
public class Demo03ArrayListEach {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("高圆圆");
        list.add("赵又廷");
        list.add("李小璐");
        list.add("贾乃亮");
        //遍历集合
        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i));
        }
    }
}
